using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace Process.Domain.Entities
{
    public class DepartmentModel : BaseEntity
    {
        /// <summary>
        /// 部门编号
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50)]
        public string DepartmentCode { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 100)]
        public string DepartmentName { get; set; }

        /// <summary>
        /// 部门描述
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 500)]
        public string Description { get; set; }

        /// <summary>
        /// 父部门ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long? ParentId { get; set; }
    }
} 